
#include"process.h"
#include<stdio.h>
#include<string.h>
#include<unistd.h>
double target_file_size = 1024.0;
double speed = 1.0;

void DownLoad(double size,double split)
{
    double current = 0;
    while(current<=size)
    {
        FlushProcess(size,current);
        if(current>=size)break;
        sleep(1);
        current+=split;
    }

}


int main()
{

   DownLoad(target_file_size,speed); 

    //Process();

    return 0;
}
